package com.outstanding.his.check.service.impl;

import com.outstanding.his.check.dao.ICheckDao;
import com.outstanding.his.check.domain.Check;
import com.outstanding.his.check.service.ICheckService;

public class CheckService implements ICheckService {

	private ICheckDao checkDao;

	public void setCheckDao(ICheckDao checkDao) {
		this.checkDao = checkDao;
	}

	@Override
	public Check submitCheck(Check check) {
		return this.checkDao.submitCheck(check);
	}

	@Override
	public Check getCheck(Integer checkId) {
		Check check = this.checkDao.getCheck(checkId);
		return check;
	}

	@Override
	public Check getCheckByPatientId(Integer patientId) {
		Check check = this.checkDao.getCheckByPatientId(patientId);
		return check;
	}

}